import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import '@/mock/mockServer'

import TypeNav from '@/components/TypeNav'
import SliderLoop from '@/components/SliderLoop'
import Pagination from '@/components/Pagination'
// 全局注册
// Vue.component('TypeNav',TypeNav)
Vue.component(TypeNav.name,TypeNav)
Vue.component('SliderLoop',SliderLoop)
Vue.component('Pagination',Pagination)


// import '@/api'

// 第二种测试接口请求函数
// import {reqCategoryList} from '@/api'
// reqCategoryList()


Vue.config.productionTip = false

new Vue({
  beforeCreate(){
    Vue.prototype.$bus = this
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')
